function sleep(time){
  return new Promise(function(resolve){
    setTimeout(function(){
      return resolve();
    },time);
  })
}

async function test(){
  console.log("start");
  await sleep(3000);
  console.log("3000 start");
}

test();
